<?php
class section extends pureHtml //don't __toString div or other element
{
    public function  __construct()
    {
        $html           = getThemeContent('section.html');
        $tableSection   = new TableSection();
        $sections       = $tableSection->listActive();

        if ( is_array( $sections) )
        {
            foreach ($sections as $line => $info)
            {
            	$info['line'] = $line;
                $content .= replaceContent($info, $html);
            }
        }
        parent::__construct($content);
    }
}
?>